<template>
  <div class="about">
    <h1>This is an about page</h1>
  </div>
</template>
<script>
export default{
  name:'AboutView',
  created(){
    // alert(this.$store.state.loginStatus);
    // this.handler();
    // console.log(this.$store.state.count);
    console.log(this.$store.state.data1);
    this.handler();
  },
  methods:{
    handler(){
      // this.$store.commit('changeCount',1);
      // this.$store.commit('changeCount',2);
      // this.$store.dispatch('delayChangeCount',10);
      // this.$store.commit('changeCount',3);
      console.log("通过计算属性获取数据："+this.$store.getters.getData);
      this.$store.commit('getData',99);
      this.$store.dispatch('delayChangeCount',299);
    }
  }
}
</script>

